.map-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.app-header {
  margin-bottom: 30px;
  text-align: center;
}

.app-header h1 {
  font-family: 'SimSun', 'STSong', serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin: 0;
  position: relative;
  display: inline-block;
}

.app-header h1::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: -8px;
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.map-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-row label {
  font-weight: 500;
  color: var(--text-color);
}

.control-row select {
  padding: 10px 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  font-family: 'SimSun', 'STSong', serif;
  min-width: 180px;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.control-row select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(143, 87, 51, 0.2);
  outline: none;
}

.control-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background-color: rgba(143, 87, 51, 0.08);
  padding: 8px 15px;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

.map-wrapper {
  position: relative;
  height: 600px;
  width: 100%;
  transition: all 0.3s ease;
}

.map-chart {
  height: 100%;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-legend h3 {
  margin-top: 0;
  color: var(--text-color);
  font-family: 'SimSun', 'STSong', serif;
  position: relative;
  padding-bottom: 10px;
}

.map-legend h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.legend-item:hover {
  transform: translateY(-2px);
}

.color-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
}

.loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .map-container {
    padding: 15px;
  }
  
  .app-header h1 {
    font-size: 1.8rem;
  }
  
  .map-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .control-row {
    width: 100%;
  }
  
  .control-row select {
    flex: 1;
  }
  
  .map-wrapper {
    height: 400px;
  }
  
  .legend-items {
    gap: 10px;
  }
} 